import request from '@/utils/request'

// 渠道API配置管理-列表
export const logisticsChannelList = data =>
  request({
    url: `/api/logistics-channel/index`,
    method: 'post',
    data,
  })

// 渠道API配置管理-详情
export const logisticsChannelDetail = params =>
  request({
    url: `/api/logistics-channel/detail`,
    method: 'get',
    params,
  })

//  渠道API配置管理-创建
export const createLogisticsChannel = data =>
  request({
    url: `/api/logistics-channel/create`,
    method: 'post',
    data,
  })

//  渠道API配置管理-编辑
export const updateLogisticsChannel = data =>
  request({
    url: `/api/logistics-channel/update`,
    method: 'post',
    data,
  })

// 渠道API配置管理-删除
export const deleteLogisticsChannel = data =>
  request({
    url: `/api/logistics-channel/delete`,
    method: 'post',
    data,
  })

// 渠道API配置管理-启用禁用
export const statusLogisticsChannel = data =>
  request({
    url: `/api/logistics-channel/status`,
    method: 'post',
    data,
  })

// 渠道API配置管理-获取物流商API运输方式
export const logisticsChannelShipping = data =>
  request({
    url: `/api/logistics-channel/get-logistics-channel-shipping`,
    method: 'post',
    data,
  })
